<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<title>支付结果</title>
	<script src="{{asset(config('view.frontend.wap_login').'/js/jquery-1.11.0.min.js')}}"></script>
<style>
body{padding:0;margin:0;}
article{
	text-align: center;
	margin:20px auto;
}
article h3{
	font-weight: normal;
	color:#373737;
	font-family: "微软雅黑", "Helvetica Neue", Helvetica, Arial,sans-serif;
}
article p{
	color:#00C12C;
	font-family: "微软雅黑", "Helvetica Neue", Helvetica, Arial,sans-serif;
}
article button{
	border:0;
	background: #01C12D;
	color:#ffffff;
	border-radius: 3px;
	padding:10px;
	width:90%;
	font-size:16px;
	outline: none;
	font-family: "微软雅黑", "Helvetica Neue", Helvetica, Arial,sans-serif;
	margin:15px 0;
}
.other-view{max-width: 90%;width:90%;margin-top:30px;}
</style>
</head>
<body>
@if($status ==-2)
<div style="position: absolute;width: 100%;height: 100%;background: rgba(0,0,0,0.8);text-align: center;">
<img src="{{asset(config('view.frontend.wap_login').'/images/other_view.png')}}"  class="other-view "/>
</div>
@else
<article>
	@if($status ==1)
		<div class="pay-block">
			<img src="{{asset(config('view.frontend.wap_login').'/images/pay_success.png')}}" />
		</div>
		<h3>{{$page_title}}</h3>
		<p>订单号：{{$order_no}}</p>
	@else
		<div class="pay-block">
			<img src="{{asset(config('view.frontend.wap_login').'/images/pay_error.png')}}" />
		</div>
		<h3>{{$page_title}}</h3>
		 <p style="color:#FF3C3C;">订单号：{{$order_no}}</p>
	@endif
	<button onclick="enterOrderList()">订单列表</button>
@endif
</article>
<script>
$(document).ready(function(e) {
	var counter = 0;
	if (window.history && window.history.pushState) {
		$(window).on('popstate', function () {
			window.history.pushState('forward', null, '#');
			window.history.forward(1);
			if($(window).width()<768){
				//手机端
				location.href = "{{route('f_Wap_Order_orderRecord')}}";
			}else{
				//PC端
				location.href = "{{route('f_Wap_Order_orderRecord')}}";
			}
		});
	}
	window.history.pushState('forward', null, '#'); //在IE中必须得有这两行
	window.history.forward(1);
});
function enterOrderList(){
	if($(window).width()<768){
		//手机端
		location.href = "{{route('f_Wap_Order_orderRecord')}}";
	}else{
		//PC端
		location.href = "{{route('f_Wap_Order_orderRecord')}}";
	}
}
</script>
</body>
</html>